package com.station;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @Method: App
 * @Description: 项目启动入口类
 * @author 李祥
 * @version V1.0
 */
@EnableScheduling
@EnableAsync
@EnableTransactionManagement
@EnableCaching
@MapperScan(basePackages ={"com.station.service.mapper"})
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class})
public class App {
	private static Logger logger = LoggerFactory.getLogger(App.class);

	public static void main(String[] args) {
		System.out.println("Hello newblderp !");
		SpringApplication.run(App.class, args);
		logger.info("***************************************");
		logger.info("***************************************");
		logger.info("项目启动成功");
		logger.info("***************************************");
		logger.info("***************************************");
	}
}
